package site.sorghum.ddl.exception;

import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
public class DdlException extends RuntimeException {

    public DdlException() {
        super();
    }

    public DdlException(String message) {
        super(message);
    }

    public DdlException(String message, Throwable cause) {
        super(message, cause);
    }

    public DdlException(Throwable cause) {
        super(cause.getMessage(), cause);

    }

    protected DdlException(String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
    }
}
